package com.zk.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zk.yygh.model.order.OrderInfo;
import com.zk.yygh.vo.order.OrderCountQueryVo;
import com.zk.yygh.vo.order.OrderCountVo;
import com.zk.yygh.vo.order.OrderQueryVo;

import java.util.List;
import java.util.Map;

/**
 * @author: 张凯
 * @date: 2022/6/20 - 14:45
 */
public interface OrderService extends IService<OrderInfo> {
    //订单列表（订单查询带分页）
    Long saveOrder(String scheduleId, Long patientId);

    //订单列表（订单查询带分页）
    IPage<OrderInfo> orderInfoList(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //根据订单id获取订单详情
    OrderInfo getOrder(Long orderId);

    //取消订单
    boolean cancelOrder(Long orderId);

    //定时任务提醒就诊
    void patientTips();

    //获取预约统计及人数
    Map<String,Object> getReserveDateMap(OrderCountQueryVo orderCountQueryVo);

    //订单详情
    Map<String,Object> show(Long orderId);

}
